# coding=utf-8
from application import app

"""
拦截器配置
"""
from web.interceptors.AuthInterceptor import *
from web.interceptors.ErrorInterceptor import *

"""
URL配置
"""
from web.controllers.index import route_index
from web.controllers.user.Controller import route_user
from web.controllers.account.Controller import route_account
from web.controllers.customer.Controller import route_customer
from web.controllers.food.Controller import route_food
from web.controllers.static import route_static
from web.controllers.upload import route_upload


app.register_blueprint( route_index, url_prefix="/")
app.register_blueprint( route_user, url_prefix="/user")
app.register_blueprint( route_account, url_prefix="/account")
app.register_blueprint( route_customer, url_prefix="/customer")
app.register_blueprint( route_food, url_prefix="/food")
app.register_blueprint( route_static, url_prefix="/static" )
app.register_blueprint( route_upload, url_prefix="/upload" )

